package pattern;

import java.util.regex.Pattern;

/**
 * .
 *
 * @author sunhao(sunhao.java @ gmail.com)
 * @version V1.0, 2018-1-8-0008 11:18
 */
public class TestPattern {
    public static void main(String[] args) {
        String pattern = ".*/webjars/.*";
        String test = "/rest/webjars/springfox-swagger-ui/css/reset.css";

        Pattern p = Pattern.compile(pattern);
        System.out.println(p.matcher(test).matches());
    }
}
